Fix resource leak in gdk_display_close() under Wayland
authorJulien Ropé <jrope@redhat.com>
Mon, 31 Aug 2020 15:26:18 +0000 (17:26 +0200)
committerJulien Ropé <jrope@redhat.com>
Mon, 31 Aug 2020 15:46:18 +0000 (17:46 +0200)
commit665955b81eb3b190e8e49bb26638a6928ad96af7
treea70b214251a58ea418553c3c8a8799c16b7795c3
parent5adc1dc40f203cb639b507c0644f4c04924defab
Fix resource leak in gdk_display_close() under Wayland

When using the gdk_display_close(), the handle to the Wayland compositor was not released. This could cause the consumption of all available handles, preventing other processes from accessing the display.

Fixing this by calling wl_display_disconnect() when releasing the GdkWaylandDisplay object.

Signed-off-by: Julien Ropé <jrope@redhat.com>
gdk/wayland/gdkdisplay-wayland.c